package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


/**
   @author KING
   @ClassName: com.qf.entity.Stock
   @Description: 该类的功能描述
   @date: 2021/10/30 11:00 
*/
    

/**
    * 商品库存表
    */
@Data
@TableName(value = "t_stock")
public class Stock {
    /**
     * 商品库存数量
     */
    @TableId(value = "quantity", type = IdType.INPUT)
    private Long quantity;

    @TableField(value = "stock_id")
    private Long stockId;

    /**
     * 商品ID
     */
    @TableField(value = "product_id")
    private Long productId;

    public static final String COL_QUANTITY = "quantity";

    public static final String COL_STOCK_ID = "stock_id";

    public static final String COL_PRODUCT_ID = "product_id";
}